@charset 'utf-8';
@import 'common';

// 标题重复样式
%reuse-title {
    form {
        width: 145px;
        margin: 15px auto;
    }

    form fieldset {
        border-color: #6db6fe;
        box-sizing: border-box;
        padding: 0px 0px 5px 0px;
        text-align: center;
        border-width: 2px;
        border-style: groove;
        border-image: initial;
    }

    form fieldset legend {
        font-size: 24px;
        font-family: $font;
    }

    .en {
        font-size: 9px;
        font-family: "Arial";
        text-transform: uppercase;
        font-weight: bold;
    }
}

.middle {
    width: 100%;
}

// 关于我们
.about {
    background: #fafafa;
    @extend %reuse-title;
    // margin: 15px auto;

    .container {
        @include reuse-flex();
        justify-content: space-evenly;

        .item {
            background: #f2f2f2;
            height: 319px;
            box-sizing: border-box;
            @include reuse-flex(column);
            justify-content: space-around;
            align-items: center;
            text-align: center;
            padding: 0 10px;
            box-sizing: border-box;

            p {
                text-align: left;
                line-height: 25px;
                font-family: $font;
                font-size: 12px;
                color: #838383;
            }

            .name {
                .en {
                    margin-top: 5px;
                }
            }
        }

        .mission {
            // flex: 1;
            width: 267px;
        }

        .team {
            // flex: 2;
            width: 322px;
        }

        .vision {
            // flex: 1;
            width: 267px;
        }
    }
}

// 投资案例
.case {
    @extend %reuse-title;
    margin: 15px auto;

    .fx {
        @include reuse-flex(row, wrap);
        justify-content: center;

        .fx-ele {
            @include reuse-flex(column);
            align-items: center;
            justify-content: space-evenly;
            width: calc(100% / 3 - 25px);
            height: 290px;

            .img {
                width: 295px;
                height: 209px;
                border: 1px solid #000;
                box-sizing: border-box;

                img {
                    width: 100%;
                }
            }

            p {
                font-size: 12px;
                font-family: $font;
                color: rgb(0, 0, 0);
            }

            button {
                width: 140px;
                height: 30px;
                line-height: 30px;
                font-size: 16px;
                font-family: $font;
                color: #fff;
                font-weight: bold;
                text-transform: uppercase;
                text-align-last: justifyLeft;
                background: $color;
                border: none;
                cursor: pointer;
            }
        }
    }
}

// 友情链接
.link {
    width: 900px;
    background: url('../image/home/link-bg.png') no-repeat #313131;
    height: 305px;
    @extend %reuse-title;
    position: relative;
    margin: 15px auto;

    .link-title {
        padding-top: 10px;
    }

    form {
        color: #fff;
    }

    // 轮播
    .slides {
        width: 100%;
        height: 81px;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);

        .slide-item {
            width: 680px;
            height: 100%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            opacity: 0;
            transition: all 0.5;
        }

        .left,
        .right {
            width: 37px;
            height: 69px;
            background: hsl(210, 5%, 24%);
            opacity: 0.5;
            z-index: 99;
            margin: 0 5px;
            @include reuse-flex;
            justify-content: center;
            align-items: center;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            text-align: center;

            i {
                width: 18px;
                height: 30px;
                cursor: pointer;
                line-height: 30px;
            }
        }

        .left {
            left: 0;

            i {
                display: block;
                background: url('../image/home/icon-left.png') center;
            }
        }

        .right {
            right: 0;

            i {
                display: block;
                background: url('../image/home/icon-right.png') center;
            }
        }

        .slide-item:nth-child(2) {
            filter: brightness(0.5);
        }

        .slide-item:nth-child(3) {
            filter: contrast(0.5);
        }

        .slide-item.active {
            z-index: 10;
            opacity: 1;
        }
    }
}